package com.ems.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TeacherExamPaper {

    private String title;
    private Integer totalTime;
    private Integer totalScore;
    private Integer objScore;
    private Integer subjScore;
    private Integer pid;
    private List<StudentPaper.SingleChoice> singleChoice;
    private List<MultipleChoice> multipleChoice;
    private List<SubjectiveQuestions> subjectiveQuestions;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class SingleChoice{
        private Integer epid;
        private Integer pqid;
        private Integer sort;
        private Integer score;
        private String describes;
        private String image;
        private List<Options> options;

        @Data
        @AllArgsConstructor
        @NoArgsConstructor
        public static class Options{
            private String abc;
            private String image;
            private String content;
            private Integer qaid;
            private Integer isRight;
        }
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class MultipleChoice{
        private Integer epid;
        private Integer pqid;
        private Integer sort;
        private Integer Score;
        private String describes;
        private String image;
        private List<SingleChoice.Options> options;

        @Data
        @AllArgsConstructor
        @NoArgsConstructor
        public static class Options{
            private String abc;
            private String image;
            private String content;
            private Integer qaid;
            private Integer isRight;
        }
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class SubjectiveQuestions{
        private Integer pqid;
        private Integer score;
        private Integer sort;
        private String describes;
        private String image;
        private String analysis;
    }
}
